package java07;

import java.util.Arrays;

 class Java73 {
	public static void main(String[] args) {
		final String mainThreadName = Thread.currentThread().getName();
        Thread t1 = new Thread(() ->{
        	//public void run(){
        		
        		System.out.println(mainThreadName);
        		System.out.println(Thread.currentThread().getName());
        		System.out.println(Arrays.toString(Thread.currentThread().getClass().getInterfaces()));
        	
        });
        
        t1.start();
		/*final String mainThreadName = Thread.currentThread().getName();
        Thread t1 = new Thread(new Runnable(){
        	public void run(){
        		
        		System.out.println(mainThreadName);
        		System.out.println(Thread.currentThread().getName());
        		System.out.println(Arrays.toString(getClass().getInterfaces()));
        	}
        });
        
        t1.start();
	*/
	}

}
